package com.atkxp.sys.service.impl;

import com.atkxp.sys.entity.LoginLog;
import com.atkxp.sys.mapper.LoginLogMapper;
import com.atkxp.sys.service.ILoginLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统访问记录 服务实现类
 * </p>
 *
 * @author kxp
 * @since 2023-10-09
 */
@Service
public class LoginLogServiceImpl extends ServiceImpl<LoginLogMapper, LoginLog> implements ILoginLogService {

    @Override
    public void insertLogininfor(LoginLog logininfor) {
        logininfor.setLoginTime(LocalDateTime.now());
        this.baseMapper.insert(logininfor);
    }
}
